<?php
namespace app\admin\model;

use think\Model;
use think\Db;
use think\Config;

class AdminUserModel extends Model
{
    // 指定表名,不含前缀
    protected $name = 'admin_user';
    //主键名
    protected $pk = 'uid';

    /**
     * 获取管理员个人信息
     */
    public function getUserInfo($uid)
    {
        return $this->where('uid', $uid)->find();
    }

}
